package liheng.vue.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import liheng.vue.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@Tag(name = "导航菜单服务相关的API接口",description = "导航菜单服务相关的API接口")
@RestController
@RequestMapping("/menu")
public class MenuController {
    @Autowired
    private MenuService menuService;

    @Operation(summary = "查询导航菜单",description = "查询导航菜单")
    @GetMapping("/find")
    public List<Map<String,Object>> find(){
        return menuService.find();
    }

}